    public List<CityCategoryEntity> getCategory(int pid){
        val cb = session.getCriteriaBuilder();
        var query = cb.createQuery(CityCategoryEntity.class);
        val root = query.from(CityCategoryEntity.class);
        query = query.where(cb.equal(root.get("pid"),pid));
        return session.createQuery(query).list();
    }